package com.tttshaoqi.server.mapper;

import com.tttshaoqi.pojo.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    int insert(Comment c);
    List<Comment> listByPostId(@Param("postId") Long postId);

    Long getCountByPostId(Long postId);
}


